package com.example.gw_back_end.domain.document;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(value = "gw_token")
public class TokenDocument {

  @Id
  private String token;
  @Indexed(unique = true)
  private Integer userId;
  @Indexed(unique = true)
  private String rawToken;
}
